module.exports = {
    type: 'list',
    async fetch({
        args,
        page
    }) {
        let resp = await $http.get(`http://app.jjwxc.org/androidapi/search?keyword=${args.keyword}&type=1&page=${page || 1}&token=null&searchType=1&sortMode=DESC&versionCode=126`, {
        })
        console.log(page)
        let list = resp.data.items
        let items = list.map(data => {
            return {
                id: data.novelid,
                summary: data.novelintroshort,
                title: data.novelname,
                style: 'simple',
                thumb: data.cover,
                   route: $route('types/summary', {
                    id: data.novelid
                }) ,           
            }
        })
        return {
            nextPage: page+ 1,
            items,
            title:decodeURI(args.keyword) + '🉐搜索结果'
        }
    }
}